# Contributor: Alex Yam <alex@alexyam.com>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Alex Yam <alex@alexyam.com>
pkgname=gyp
pkgver=20210831
_gitrev=d6c5dd51dc3a60bf4ff32a5256713690a1a10376
pkgrel=0
pkgdesc="Generate Your Projects Meta-Build system"
options="!check" # Tests currently fail
url="https://gyp.gsrc.io"
arch="noarch"
license="BSD-3-Clause"
depends="python3 ninja"
makedepends="py3-setuptools"
source="$pkgname-$_gitrev.tar.gz::https://github.com/chromium/gyp/archive/$_gitrev.tar.gz
	0001-fix-module-collections-has-no-attribute-mutableset-iterable.patch
	"
builddir="$srcdir/$pkgname-$_gitrev"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root="$pkgdir"
}

cleanup_srcdir() {
	[ -d src ] && chmod -R +w src
	default_cleanup_srcdir
}

sha512sums="
25bc5f6d58b80c8c4bf47516950cd8587838db0c42b48ccd994ec9293d2f32b22b546a77fac61366afa5e8bce232a28860a44312300be1a598509bb20ff8229e  gyp-d6c5dd51dc3a60bf4ff32a5256713690a1a10376.tar.gz
cb6311e4778b14e9b2f495f6c65d1447e2ff7f74ff74f1b4552dc44f76fd4e5e51036629345b368d23bbf5ab18419d06855429280aae9daacf01ae0d975011a6  0001-fix-module-collections-has-no-attribute-mutableset-iterable.patch
"
